package com.jinlia.show.modules.base.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinlia.show.common.core.entity.BaseEntity;
import com.jinlia.show.modules.base.config.DynamicSchemaConfig;
import lombok.Data;

/**
 * 菜单实体对象
 *
 * @author haoxr
 * @since 2023/3/6
 */

@Data
@TableName(value = "sys_menu", schema = DynamicSchemaConfig.schema_system)
public class SysMenu {
    /**
     * 菜单ID
     */
    @TableId()
    private Long id;
    /**
     * 菜单名称
     */
    private String name;

    private String code;

    /**
     * 菜单类型(1-菜单；2-目录；3-外链；4-按钮权限)
     */
    private String menuType;
    /**
     * 父菜单ID
     */
    private Long parentId;
    /**
     * 路由路径(浏览器地址栏路径)
     */
    private String menuPath;
    /**
     * 跳转路径
     */
    private String redirect;
    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 组件路径(vue页面完整路径，省略.vue后缀)
     */
    private String component;

    private String layout;

    /**
     * 【菜单】是否开启页面缓存(1:开启;0:关闭)
     */
    private Boolean keepAlive;


    private String menuMethod;

    private String description;
    /**
     * 【目录】只有一个子路由是否始终显示(1:是 0:否)
     */
    private Boolean menuShow;

    private Boolean enableStatus;

    private Integer menuOrder;
}
